#include "core/Global.h"
#include "ui/MainWindow.h"

#include <QApplication>
#include <QTranslator>

#include "core/Encryptor.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    a.setApplicationName("JPG Tailor");
    a.setApplicationVersion("Ark");

    a.setOrganizationName("Unicorz");
    a.setOrganizationDomain("inu.3-a.net");

    QTranslator messageFile;
    messageFile.load(QString("./lang/%1.qm").arg(Config.value("window/displayLanguage", "zh-CN").toString()));
    a.installTranslator(&messageFile);

    MainWindow w;
    w.show();

    return a.exec();
}
